<?php
$this->breadcrumbs=array(
	'Items'=>array('index'),
	$model->title,
);

$this->menu=array(
	array('label'=>'List Item', 'url'=>array('index')),
	array('label'=>'Create Item', 'url'=>array('create')),
	array('label'=>'Update Item', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Item', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Item', 'url'=>array('admin')),
);
?>

<h1>View Item #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'show',
		'avalible',
        array(
            'name'=>'manufacturer',
            'value'=>Manufacturer::model()->findByPk($model->manufacturer)->title,
        ),
        array(
            'name'=>'category',
            'value'=>Category::model()->findByPk(Category::model()->findByPk($model->category)->parent)->title.'->'.Category::model()->findByPk($model->category)->title,
        ),
		'title',
		'permalink',
		'price',
		'old_price',
		'description',
		'alt_title',
		'alt_keywords',
		'alt_description',
        array(
            'name'=>'created',
            'value'=>date('l dS \o\f F Y H:i:s', $model->created),
        ),
        array(
            'name'=>'updated',
            'value'=>date('l dS \o\f F Y H:i:s', $model->updated),
        ),
		'viewcount',
	),
)); ?>
